package com.talos.ums.controller.admin.childuser.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 子账号添加记录表新增/修改 Request VO")
@Data
public class UmsChildUserSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "5256")
    private Long id;

    @Schema(description = "账号id", requiredMode = Schema.RequiredMode.REQUIRED, example = "6313")
    @NotNull(message = "账号id不能为空")
    private Long userId;

    @Schema(description = "货主id", requiredMode = Schema.RequiredMode.REQUIRED, example = "31492")
    @NotNull(message = "货主id不能为空")
    private Long companyId;

    @Schema(description = "货主编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "货主编码不能为空")
    private String companyCode;

    @Schema(description = "货主名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "货主名称不能为空")
    private String companyName;

    @Schema(description = "账号昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "账号昵称不能为空")
    private String nickname;

    @Schema(description = "登录账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "登录账号不能为空")
    private String username;

    @Schema(description = "账号类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "账号类型不能为空")
    private String type;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你说的对")
    @NotEmpty(message = "备注不能为空")
    private String remark;

}
